<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Identification</h2>
        <f:view>
            <h:form>
                <h:messages layout="list" infoStyle="info" warnStyle="warn" errorStyle="error" styleClass="error"/>
                <h:outputText value="#{LoginBean.gestionnaire.nom}"></h:outputText>
                <fieldset>
                    <legend>Identification</legend>
                    <dl>
                        <dt>E-mail :</dt>
                        <dd>
                            <h:inputText id="txtEmail" value="#{LoginBean.gestionnaire.email}" required="true" requiredMessage="e-mail obligatoire"/>
                        </dd>
                        <dt>Mot de passe :</dt>
                        <dd>
                            <h:inputSecret id="txtPassword" value="#{LoginBean.gestionnaire.password}" required="true" requiredMessage="mot de passe obligatoire"/>
                        </dd>
                        <dd> <h:commandButton value="Valider" action="#{LoginBean.login}"/> </dd>
                    </dl>
                </fieldset>
            </h:form>
        </f:view>
    </body>
</html>
